/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Figuras;

import java.awt.*;


/**
 *
 * @author Administrador
 */
public class ParedInerte extends Figura{

    public ParedInerte(Integer x0, Integer y0, Integer w0, Integer h0, Color c,
            Lienzo l){
        super(x0, y0, w0, h0, c, l);
    }

    @Override
    public void dibujate(Graphics g) {
        Graphics2D g2= (Graphics2D)g;
       // g2.setColor(color);
       // g2.fill(new Rectangle2D.Double(x,y,w,h));
        Image p = Toolkit.getDefaultToolkit().getImage("imagenes//pared2.jpg");
        g2.drawImage(p, x, y,w, h,lienzo);
    }

    @Override
    public void colisionoCon(CirculoBomba c) {

    }

    @Override
    public void colisionoCon(Cuadrilatero c) {

    }

    @Override
    public void colisionoCon(Figura c) {

    }

    @Override
    public void colisionoCon(Pared c) {

    }

    @Override
    public void colisionoCon(Bala c) {
        c.pierdeVida(-1);
    }

    @Override
    public void colisionoCon(Movil c) {
        c.choquePared();
    }

    @Override
    public void colisionoCon(ParedH c) {

    }

    @Override
    public void colisionoCon(ParedV c) {

    }
    @Override
    public String toString(){
        return "ParedInerte "+super.toString();
    }

    @Override
    public void colisionoCon(CirculoVida c) {

    }
}
